package com.hzqy.persistence.dao.industry;


import java.util.List;
import java.util.Map;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Repository;

import com.hzqy.persistence.dao.core.PersistenceDao;
import com.hzqy.web.vo.industry.threshold.IndustryThresholdVideo;
@Repository
public class IndustryThresholdDao extends PersistenceDao<IndustryThresholdVideo, Integer>{
	protected final Logger LOG = LoggerFactory.getLogger(getClass());

	public List<IndustryThresholdVideo> selectThresholdList(IndustryThresholdVideo industryThresholdVideo) {
		String namespace = this.getNamespace();
		return getSqlSession().selectList(namespace + "selectThresholdList", industryThresholdVideo);
	}
	public int selectThresholdListCount(IndustryThresholdVideo industryThresholdVideo) {
		String namespace = this.getNamespace();
		return getSqlSession().selectOne(namespace + "selectThresholdListCount", industryThresholdVideo);
	}
	public int addThreshold(IndustryThresholdVideo industryThresholdVideo) {
		String namespace = this.getNamespace();
		return getSqlSession().insert(namespace + "addThreshold", industryThresholdVideo);
	}

	public int deleteThreshold(int f_itv_id) {
		String namespace = this.getNamespace();
		return getSqlSession().update(namespace + "deleteThreshold", f_itv_id);
	}

	public int updateThreshold(IndustryThresholdVideo industryThresholdVideo) {
		String namespace = this.getNamespace();
		return getSqlSession().update(namespace + "updateThreshold", industryThresholdVideo);
	}
	public IndustryThresholdVideo selectThresholdInfo(int f_itv_id) {
		String namespace = this.getNamespace();
		return getSqlSession().selectOne(namespace + "selectThresholdInfo", f_itv_id);
	}
	public int clearThreshold() {
		String namespace = this.getNamespace();
		return getSqlSession().update(namespace + "clearThreshold");
	}
}

